{
	template:`
    <m-page @back="back" :title="title">
		<m-top></m-top>
		<m-list ref="list" :url="url" :params="params" :bottom="0" :search="search">
			<template #item="{item}">
				<m-card join>
					<div class="flex padding-sm align-center">
					    <status type="moneyRecord" :value="item.type"></status>
						<div class="flex-sub padding-right-sm">
						    <div class="padding-left-xs text-blue">
                                {{item.orderNo}}
                                <span class="text-grey padding-left-xs text-sm">{{formatDate(item.date,'yyyy-MM-dd HH:mm')}}</span>
						    </div>
						    <span v-if="item.realMoney" class="padding-left-xs text-sm">金额{{dis(item.realMoney)}}{{formatAmount(item.realMoney)}}</span>
						    <span v-if="item.giveMoney" class="padding-left-xs text-sm">赠送{{dis(item.giveMoney)}}{{formatAmount(item.giveMoney)}}</span>
						    <span v-if="item.point" class="padding-left-xs text-sm">积分{{dis(item.point)}}{{formatNum(item.point)}}</span>
						</div>
						<div class="text-right">
                            <div>{{dict('member.base.model.MoneyRecord!payType',item.payType)}}</div>
						    <span :class="item.realMoney+item.giveMoney>0?'text-green':'text-red'">{{dis(item.realMoney+item.giveMoney)+formatAmount(item.realMoney+item.giveMoney)}}</span>
						</div>
					</div>
				</m-card>
			</template>
		</m-list>
    </m-page>
	`,
	props: ['param','parentVue'],
	data:function(){
		return {
            title:'消费记录',
            url:'action/member/moneyRecord/getList',
            params:{},
            search:[
                {title:'类型',name:'type@eq',input:'dict',dict:'member.base.model.MoneyRecord!type'},
                {title:'付款类型',name:'payType@eq',input:'dict',dict:'member.base.model.MoneyRecord!payType'},
            ]
		};
	},
	mounted(){
	},
	methods:{
	    dis:function(d){
	        return d>0?'+':'';
	    }
	}
}